Repository navigation
Fix terminal drag hover overlay flicker - #1050
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a check for a missing portal entry in Changes
Sequence Diagram(s)sequenceDiagram
participant Host as GhosttyTerminalView
participant Registry as TerminalWindowPortalRegistry
participant Hosted as HostedView/Surface
Host->>Registry: isHostedView(hostedView)?
Registry-->>Host: returns portalEntryMissing (true/false)
alt portalEntryMissing == true
Host->>Registry: bind(host, hostedView) rgba(100,150,240,0.5)
Registry-->>Hosted: establish portal entry rgba(100,200,150,0.5)
Registry-->>Host: confirm bound
else portalEntryMissing == false
Host->>Hosted: continue existing binding flow
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
Greptile SummaryThis PR advances the
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant cmux (SwiftUI)
participant BonsplitLayout
participant TerminalPanelView
participant GhosttyTerminalView (NSView)
User->>BonsplitLayout: Drag tab over pane
Note over BonsplitLayout: OLD: drop-zone indicator shifted<br/>hosted content bounds → resize event fired
BonsplitLayout-->>GhosttyTerminalView (NSView): Frame changed → terminal relayout + flicker
Note over BonsplitLayout: NEW (fa452db): drop-zone rendered<br/>as true overlay, hosted content<br/>geometry unchanged
User->>BonsplitLayout: Drag tab over pane
BonsplitLayout->>TerminalPanelView: Geometry stable (no frame change)
TerminalPanelView->>GhosttyTerminalView (NSView): No resize event emitted → no flicker
Last reviewed commit: 62125c1 |
…hover-terminal-flicker-v2 Fix terminal drag hover overlay flicker
Summary
Testing
./scripts/reload.sh --tag issue-1045-v2Context
This is the clean re-land of issue #1045 after reverting the earlier bad submodule pointer. The underlying Bonsplit fix was re-applied on top of the restored
SafeTooltipbase and passed its own package CI before this PR was opened.Summary by cubic
Fixes terminal drag-hover flicker by updating Bonsplit to render drag indicators as true overlays and keeping terminal geometry stable during hover. Also auto-rebinds the terminal portal when its host registry entry is missing to prevent rare detachment and flicker.
Written for commit e4d8002. Summary will update on new commits.
Summary by CodeRabbit
Bug Fixes
Chores